package com.t.bricks.bussiness.db.dao.customeraccount;

import java.util.Date;

import com.t.bricks.bussiness.db.dao.common.BaseDao;
import com.t.bricks.bussiness.db.entity.customeraccount.CustomerAccount;
import com.t.bricks.model.MsgEmity;

public interface CustomerAccountDao<T> extends BaseDao<T> {
	
	/**
	 * 修改密码
	 * @param sId
	 * @param sOldPass
	 * @param sNewPass
	 * @param iVersion
	 * @param dModifiedDate
	 * @param sModifieder
	 * @param sRecordKey
	 * @return
	 */
	MsgEmity editPass(String sId, String sOldPass, String sNewPass, int iVersion,
			Date dModifiedDate, String sModifieder, String sRecordKey);
	
	/**
	 * 修改手势密码
	 * @param sId
	 * @param sOldPass
	 * @param sNewPass
	 * @param iVersion
	 * @param dModifiedDate
	 * @param sModifieder
	 * @param sRecordKey
	 * @return
	 */
	MsgEmity editSignPass(String sId, String sOldPass, String sNewPass,
			int iVersion, Date dModifiedDate, String sModifieder, String sRecordKey);
	
	/**
	 * 更新顾客账户中的余额
	 * @param customerAccount
	 * @return
	 */
	MsgEmity changeFund(CustomerAccount customerAccount);
	
	/**
	 * 更新顾客账户中的积分
	 * @param customerAccount
	 * @return
	 */
	MsgEmity changeTally(CustomerAccount customerAccount);
	
	/**
	 * 取用户的登录密码
	 * @param uId
	 * @return
	 */
	MsgEmity findLoginPass(String uId);

}
